<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>正则表达式</title>
</head>

<body>
	
</body>
<script>
	
	phone='1805989496@qq.com';//
	//arr=phone.match(/^139\d{8}$/i); //匹配到是数组，数组转布尔类型，都为真
	if(phone.match(/^\w+@\w+\.\w+$/i)){ 
		//1.\w+ 任意字母数字下划线  
		//2.1805989496@qq.com中点，前面用反斜线转义，则代表原来的点
		alert('邮箱格式正确');
	}else{
		alert('邮箱格式有误');
	}
</script>
</html>